<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var salary=prompt("请输入一个数:");
    if(salary<5000){
        console.log("不用交税")
    }
    if(salary<8000){
        console.log(salary*0.05)
    }else{
        console.log(salary*0.1)
    }
</script>